Configuring Communication
Communication between the Homer and external computers can be realized either via RS232 (optionally RS422) serial interface or CAN Bus. After power-up, the Homer starts its activity based on several controlling parameters. Startup settings of the communication interfaces can be defined in Rs232.cfg and Can.cfg configuration files. The Homer reads the files as part of its initialization routine.
You can create your own files or download them from the Homer, edit them and upload them back to the Homer (see Transferring Files for the download and upload). Examples of Rs232.cfg and Can.cfg configuration files are shown below. The letter case is irrelevant. Text following a semicolon is ignored. To create your own cfg file, you may copy the blue lines below and use them as a template.
For controlling other Homer startup parameters, see Homer Analyzer Starting Parameters and Homer Autotuner Starting Parameters.
Rs232.cfg
Note that PORTNUM setting is actually ignored (it is a matter of Homer internal wiring). PARITY should always remain set to zero (= no parity).
[RS232 configuration]
PORTNUM=0
BAUDRATE=115200
PARITY=0
NTIMEOUT=500000
; This file is not obligatory: use it or only some lines of it when
; values other than defaults are required. If case of missing lines
; or invalid data, the defaults are used. The defaults are as follows:
; PORTNUM=0
; BAUDRATE=115200
; PARITY=0
; NTIMEOUT=500000
; PORTNUM codes: 0=COM1 1=COM2
; BAUDRATE (bits/s) will be rounded up to the closest of these values:
; 50 300 600 1200 2400 4800
; 9600 19200 38400 57600 115200
; PARITY codes:
; 0=None 1=Odd 2=Even
; 3=Mark (fixed high)
; 4=Space (fixed low)
; NTIMEOUT is the max number of RS-232 status-reading cycles when testing
; for received data presence.
The remaining fixed COM port settings are: 8 data bits, 1 stop bit. In practice, you may only wish to change the BAUDRATE if your controller does not support the default rate.
Can.cfg
[CAN configuration]
CANBAUD=500
;========================== NOTES =================================
; This file is not obligatory: Defaults are used in case of absent
; lines or invalid data. Defaults are as follows:
; CANBAUD=500
; CANBAUD (kbits/s) will be rounded up to the closest of these values:
; 125, 250, 500
In practice, you may wish to change the CANBAUD if your installation is based on a speed different from the default.